﻿#include "weather.h"
#pragma execution_character_set("utf-8")
Weather::Weather( QLabel *_label, QObject *parent) :
    QObject(parent)
{
    label = _label;
}

void Weather::showWeather(QString city,QString area,QString weather)
{
    _city=city;
    qDebug()<<"城市："<<_city;
    _area=area;
    qDebug()<<"地区："<<_area;
    weather="\t\t"+_city+"\t"+_area+"\n\t"+weather;
    label->setText(weather);
}
